/**
 * Created by Yang Qian
 * @date 2022/11/09
 */
//import request from "@/utils/request";
import request from "@/utils/request";
// 获取权限
const getInfo = params => {
  return request({
    url: "/api/v1/interface/dynamic",
    method: "get",
    data: params
  });
};

// 获取address和port
const getAddress = params => {
  return request({
    url: "/api/v1/interface/get",
    method: "get",
    data: params
  });
};

// 获取adapter列表
const getAdapterList = params => {
  return request({
    url: "/api/v1/interface/adapters",
    method: "get",
    data: params
  });
};

// newAdapter
const newAdapter = params => {
  return request({
    url: "/api/v1/interface/set",
    method: "get",
    data: params
  });
};
export default {
  getInfo,
  getAddress,
  getAdapterList,
  newAdapter
};
